<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="format-detection" content="telephone=no">
<title>订单确认</title>
<link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/css/product.css?v=2013-11-30">
<link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/css/product/product_multi.css?v=201412121">
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js"></script>
<script type='text/javascript' src='{$Think.config.RESOURCEURL}wx_assets/js/jquery-1.7.1.min.js'></script>
<script type='text/javascript' src='{$Think.config.RESOURCEURL}wx_assets/js/base.js'></script>

<style>abbr,article,aside,audio,canvas,datalist,details,dialog,eventsource,fieldset,figure,figcaption,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,small,time,video,legend{display:block;}</style>
</head>
<body id="page_intelOrder" class="myOrderCon">
<div class="center">
	<notempty name="orderCount">
	<ul class="round">
		<li>
			<a onclick="getOrder(this);">
			<span class="arrow">我的订单</span>
			</a>
		</li>
	</ul>
	</notempty>
    <ul class="myorder">
    	<li class="title mb">
            <span class="none">全部商品</span>
            <i>
	            <span class="pCount"></span>
	     		<label>
	     		<b>共计：</b>
	     		<b class="duiqi" id="total"></b>
	     		<b class="duiqi">元</b>
	     		</label>
            </i>
        </li>
       	<volist name="productList" id="product">
       	<li>
               <span class="dishName">{$product.name}</span>
               <notempty name="product.fixedPrice">
				<empty name="product.discountedPrice">
				<empty name="product.unitName">
				<i> {$product.fixedPrice}元 </i>
				</empty>
				<notempty name="product.unitName">
				<i> {$product.fixedPrice}元/{$product.unitName} </i>
				</notempty>
				</empty>
				<notempty name="product.discountedPrice">
				<empty name="product.unitName">
				<i>{$product.discountedPrice}元</i>
				</empty>
				<notempty name="product.unitName">
				<i>{$product.discountedPrice}元/{$product.unitName}</i>
				</notempty>
				</notempty>
				</notempty>
               
               <section class="bbox" dishid="{$product.id}" dishname="{$product.name}">
               <input class="numUnit"  type="text" value="x"  readonly="readonly">
               <input class="numBox" name="numBox" type="text" value="{$product.reserveCount}"
               	discountedprice="{$product.discountedPrice}" fixedprice="{$product.fixedPrice}" readonly="readonly">
               </section>
           </li>
           </volist>
    </ul>
    
	<ul class="round">
		<li class="title mb"><span class="none">请填写订单信息</span></li>
		<li class="nob">
				<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="kuang">
				<tr id="toAddrList">
					<th class="selectName">送&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至</th>
					<td class="selectInfo">
						<a class="arrow" onclick="onAddress(this);">
							<div evttag="toAddrList">
							<span id="addr_fullName">{$fullName}</span>
								 &nbsp;&nbsp;&nbsp;&nbsp; 
							<span id="addr_pohne" class="ui_color_weak">{$phone}</span> 
							<span id="goaddlist" style="display: none"> </span>
							</div>
							<div id="addr_detail" evttag="toAddrList" class="address qb_fs_m">{$address}</div>
						</a>
					</td>
				</tr>
				<tr id="toStoreList" style="display:none">
					<th class="selectName">自提点名称</th>
					<td class="selectInfo">
						<a class="arrow" onclick="onStore(this);">
							<div evttag="toStoreList">
								{$lastBuyStoreName} 
							</div>
						</a>
					</td>
				</tr>
			</table>
		</li>
		<li class="nob">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="kuang">
				<tr>
					<th class="selectName">配送方式</th>
					<td class="selectInfo">
					<select evttag="sendType" id="select_shipFee" class="selectInfoSub">
                    	<if condition="count($shipping) gt 1 && !$deliveryHasDefault">
                    		<option value="0" mtype="-1">请选择配送方式</option>
                    	</if>
                    	<volist name="shipping" id="shipping">
                    		<if condition="($shipping.isDefault eq '1')">
		                    	<if condition="($shipping.cost eq NULL) AND ($shipping.points eq NULL)">
		                    		<option value="0" mtype="{$shipping.value}" ptype="0" selected>{$shipping.text}</option>
		                    	<elseif  condition="$shipping.cost neq NULL"/>
		                    		<option value="{$shipping['cost'] * 100}" mtype="{$shipping.value}" ptype="0" selected>{$shipping.text}： ￥{$shipping.cost}元</option>
		                    	<elseif  condition="$shipping.points neq NULL"/>
		                    		<option value="{$shipping.points}" mtype="{$shipping.value}" ptype="0" selected>{$shipping.text}： {$shipping.points}积分</option>
		                    	</if>
	                    	<else />
	                    		<if condition="($shipping.cost eq NULL) AND ($shipping.points eq NULL)">
		                    		<option value="0" mtype="{$shipping.value}" ptype="0" selected>{$shipping.text}</option>
		                    	<elseif  condition="$shipping.cost neq NULL"/>
		                    		<option value="{$shipping['cost'] * 100}" mtype="{$shipping.value}" ptype="0" selected>{$shipping.text}： ￥{$shipping.cost}元</option>
		                    	<elseif  condition="$shipping.points neq NULL"/>
		                    		<option value="{$shipping.points}" mtype="{$shipping.value}" ptype="0" selected>{$shipping.text}： {$shipping.points}积分</option>
		                    	</if>
		                    </if>
                    	</volist>
                    </select>
					</td>
				</tr>
			</table>
		</li>
		<li class="nob">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="kuang">
				<tr>
					<th class="selectName">支付方式</th>
					<td class="selectInfo">
					<select evttag="changePay" id="sel-pay" class="selectInfoSub">
	                    <if condition="count($payType) gt 1 && !$payTypeHasDefault">
	                    	<option value="-1">请选择支付方式</option>
	                    </if>
	                    <volist name="payType" id="payType">
	                    	<if condition="($payType.isDefault eq '1')">
	                    		<option value="{$payType.value}" selected>{$payType.text}</option>
	                    	<else />
	                    		<option value="{$payType.value}">{$payType.text}</option>
	                    	</if>
	                    </volist>
                    </select>
					</td>
				</tr>
			</table>
		</li>
		<li class="nob">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="kuang">
				<tr>
					<th valign="top" class="selectName">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</th>
					<td class="selectInfo">
						<textarea name="info" class="pxtextarea"
							style="overflow-y: visible" id="info"
							placeholder="选填"></textarea></td>
				</tr>
			</table>
		</li>
	</ul>

	<div class="footReturn">
		<input type="button" id="showcard" class="submit" value="提交订单" />
		<div class="window" id="windowcenter">
			<div id="title" class="wtitle">
				操作提示<span class="close" id="alertclose"></span>
			</div>
			<div class="content">
				<div id="txt"></div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
var hrefParamsArray = GetSessionIdFromHref(window.location.search);
hrefParamsArray["userName"]='{$userName}';
function GetSessionIdFromHref(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) continue; 
			
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				retval["id"] = obj.id;
				if (obj.ptype != undefined) {
					retval["ptype"] = obj.ptype;
				}
				if (obj.dtype != undefined) {
					retval["dtype"] = obj.dtype;
				}
				retval["mid"] = obj.mid;
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			}
		} 
		return retval; 
}

var hrefPath = 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
var basePath = 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
var id = hrefParamsArray["id"];

var fullName = '{$fullName}';
var phone = '{$phone}';
var address = '{$address}';
var sid = '{$lastBuyStoreId}';
</script>

<script src="wx_assets/js/product/product_multi.js?v=201412281"></script>
<script type="text/javascript">
init();
</script>

              
<script type="text/javascript">
function resetAndAppendHerf(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
	for(var i = 0; i < args.length; i ++){ 
		str = args[i]; 
		var arg = str.split("="); 
		if(arg.length <= 1) continue; 
		if(arg[0] == 'userName'){
			args[i] = "userName=";
		}
	} 
	return args.join("&");
}
</script>

</body></html>